<!doctype html>
<html>
<head>
  <meta charset="utf-8" />
  <title>#(title)</title>
  <link rel="stylesheet" href="#(serverUrl)/wz/layui/css/layui.css" />
  <script src="#(serverUrl)/wz/layui/layui.js" type="application/javascript"></script>
  <style>
    body {
      background: #fff;
      margin: 0;
      padding: 0;
    }
    .layui-container {
      width: 90% !important;
      min-height: 100vh;
      background-color: #ffffff;
      margin: 0 auto;
      padding: 20px;
      border: none;
      position: relative;
    }

    .layui-container p {
      display: inline-block;
    }
    .grid-demo {
      padding: 10px;
      line-height: 38px;
    }
    .title {
      color: #1ea0fa;
      font-weight: bold;
      font-size: 20px;
      text-align: center;
    }

    .question_type {
      font-size: 18px;
      font-weight: bold;
    }
    .layui-col-md4 {
      width: 100%;
    }
    .question_item {
      font-size: 16px;
      margin: 10px 20px 10px 20px;
    }
    .question_content {
      position: relative;
      left: 5%;
      width: 90%;
    }
    .layui-col-md4 .item {
      display: inline-block;
      width: 45%;
      margin: 15px;
      float: left;
      line-height: 28px;
    }
    .option ul li {
      display: inline-block;
      margin: 20px;
    }

    @media print {
      .layui-container {
        width: 100% !important;
        margin: 0;
        padding: 0;
      }

      body {
        background: #fff;
      }
    }
  </style>
</head>
<body>
<div class="layui-container">
  <div class="layui-col-md4">
    <div class="grid-demo title grid-demo-bg1">
      <span>#(title)</span>
    </div>
  </div>

  #for (item : testPaperQuestionList)
  <div class="question_content">
    <div class="grid-demo grid-demo-bg1">
          <span class="question_type">
            #(item.groupQuestionTypeTitleNumber)、#(item.groupQuestionTypeTitle)
          </span>
    </div>

    #for (question : item.groupQuestionList)
    <div class="question_item">
      <div>#(for.count).#(question.content)</div>

      <!-- 选择题 -->
      #if(question.optionsList)
      <div class="option">
        <ul>
          #for(option : question.optionsList)
          <li>
            <span>#(option.label).</span>
            #(option.option_name)
          </li>
          #end
        </ul>
      </div>
      #end
    </div>
    #end
  </div>
  #end
</div>
</body>

<script>
  layui.use("form", function () {
    var form = layui.form;
  });
</script>
</html>
